package com.hyst.repository;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.Page;
import com.hyst.domain.CurriculumSchedule;
import com.hyst.domain.CurriculumScheduleView;
import com.hyst.domain.LeaveRequest;

import com.hyst.domain.StudentLeaveRequest;
import tk.mybatis.mapper.common.Mapper;

public interface LeaveRequestMapper extends Mapper<LeaveRequest> {

	List<LeaveRequest> getLeaveRequestList(LeaveRequest leaveRequest) throws Exception;
	
	LeaveRequest getLeaveInfoById(String uniqueId) throws Exception;
	
//	List<LeaveRequest> listByDate(LeaveRequest leaveRequest);
//	
//	List<LeaveRequest> listByStatus(LeaveRequest leaveRequest);
//	
//	List<LeaveRequest> listByAdmin(LeaveRequest leaveRequest);
	
	int updateAdminForLeave(LeaveRequest leaveRequest) throws Exception;
	
	int updateLeaveRequestStatus(LeaveRequest leaveRequest) throws Exception;

	List<LeaveRequest> getLeaveRequestList2(LeaveRequest leaveRequest);

	List<LeaveRequest> getLeaveRequestDate(LeaveRequest leaveRequest);

    List<LeaveRequest> getLeaveRequestList3(LeaveRequest leaveRequest);
    int updateStatus(Map sqlMap);

    List<StudentLeaveRequest> getStudentLeaveList(LeaveRequest leaveRequest);
}
